package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.enums.TaskBizType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * 用户活动任务表,每完成任务往该记录中插入数据
 */
@Getter
@Setter
@Document(collection = "user_activity_task_info")
public class UserActivityTaskInfo extends EntityBase {
    @Indexed
    private String userId;
    private String openId;
    private String appId;
    private String platform;
    private String name;
    private String mobile;
    private String universityId;
    private String universityName;
    @Indexed
    private String taskId;
    @Indexed
    private String activityId;
    private String activityName;
    /**
     * 状态,0:待上传,1:待审核,2:审核通过,3:审核不通过,4:已领取
     */
    private Integer status = 0;
    /**
     * 任务类型
     */
    @Indexed
    private TaskBizType taskBizType;
    /**
     * 完成类型,all:全局,day:每天
     */
    private String doType = "all";
    /**
     * 日期
     */
    private Date dayTime;
    /**
     * 完成时间
     */
    private Date doneTime;
    /**
     * 审核说明
     */
    private String verifyComment;
    /**
     * 文字内容,用户提交的文字内容
     */
    private String content;
    /**
     * 点赞数量
     */
    private Long likeNum = 0L;
    /**
     * 收藏数量
     */
    private Long collectNum = 0L;
    @Transient
    private List<UserActivityFootPrint> prints;

}
